function WriteFiles()
local text = ""
	for _, v in pairs(ents.FindByClass("gmod_locator")) do
		text = text..tostring(v:GetPos()).."\r\n"
	end
	file.Write("blah.txt",text)
end
timer.Create("timer", 5, 0, WriteFiles)